package com.ruoyi.order.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 服务管理对象 cf_service_items
 * 
 * @author xwh
 * @date 2024-06-04
 */
public class CfServiceItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务编号 */
    @Excel(name = "服务编号")
    private Long id;

    /** 服务项目 */
    @Excel(name = "服务项目")
    private String name;

    /** 商家名称 */
    @Excel(name = "商家名称")
    private Long shopId;

    /** 服务分类 */
    @Excel(name = "服务分类")
    private Long serviceSortId;

    /** 原价 */
    @Excel(name = "原价")
    private Long oldPrice;

    /** 原价 */
    @Excel(name = "原价")
    private Long newPrice;

    /** 服务介绍 */
    @Excel(name = "服务介绍")
    private String intro;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 逻辑删除 */
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setServiceSortId(Long serviceSortId) 
    {
        this.serviceSortId = serviceSortId;
    }

    public Long getServiceSortId() 
    {
        return serviceSortId;
    }
    public void setOldPrice(Long oldPrice) 
    {
        this.oldPrice = oldPrice;
    }

    public Long getOldPrice() 
    {
        return oldPrice;
    }
    public void setNewPrice(Long newPrice) 
    {
        this.newPrice = newPrice;
    }

    public Long getNewPrice() 
    {
        return newPrice;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("shopId", getShopId())
            .append("serviceSortId", getServiceSortId())
            .append("oldPrice", getOldPrice())
            .append("newPrice", getNewPrice())
            .append("intro", getIntro())
            .append("time", getTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
